/*
 * @Author: your name
 * @Date: 2021-08-03 17:06:33
 * @LastEditTime: 2021-08-09 18:07:06
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \hrsaas-86\src\api\user.js
 */
import request from '@/utils/request'

export function reqLogin(data) {
  return request({
    method: 'post',
    url: 'sys/login',
    data
  })
}

/**
 * 获取用户的基本资料
 ***/
export function reqGetUserInfo() {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

// 获取员工基本信息
export const reqGetUserDetailById = id =>
  request({
    method: 'get',
    url: `/sys/user/${id}`
  })
export function logout() {}

export function reqGetEmployeeSimple() {
  return request({
    url: '/sys/user/simple'
  })
}
